package com.ruoyi.industry.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.industry.domain.ProjectApartment;

import javax.servlet.http.HttpServletResponse;

/**
 * 公寓Service接口
 *
 * @author MagicCube
 * @date 2023-05-08
 */
public interface IProjectApartmentService
{
    /**
     * 查询公寓
     *
     * @param id 公寓主键
     * @return 公寓
     */
    public ProjectApartment selectProjectApartmentById(Long id);

    /**
     * 查询公寓列表
     *
     * @param projectApartment 公寓
     * @return 公寓集合
     */
    public List<ProjectApartment> selectProjectApartmentList(ProjectApartment projectApartment);

    /**
     * 新增公寓
     *
     * @param projectApartment 公寓
     * @return 结果
     */
    public int insertProjectApartment(ProjectApartment projectApartment);

    /**
     * 修改公寓
     *
     * @param projectApartment 公寓
     * @return 结果
     */
    public int updateProjectApartment(ProjectApartment projectApartment);

    /**
     * 批量删除公寓
     *
     * @param ids 需要删除的公寓主键集合
     * @return 结果
     */
    public int deleteProjectApartmentByIds(Long[] ids);

    /**
     * 删除公寓信息
     *
     * @param id 公寓主键
     * @return 结果
     */
    public int deleteProjectApartmentById(Long id);

    Map<String, Object> selectProjectApartmentByNumber(String spaceId, boolean show);

    int deleteProjectApartmentBySerialNumber(String spaceId);

    void exportEntrust(HttpServletResponse response, Long id);

    String importUser(List<ProjectApartment> projectApartmentList, boolean updateSupport, String operName);
}
